group '{{groupId}}'
version '{{artifactVersion}}'

task generate_wrapper(type: Wrapper) {
    gradleVersion = '3.3'
    distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}

buildscript {
    ext.kotlin_version = '1.4.10'

    repositories {
        mavenCentral()
    }
    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'com.google.code.gson:gson:2.8.6'
    }
}

apply plugin: 'kotlin'

repositories {
    mavenCentral()
    maven {
        url "https://mvnrepository.com"
    }
}

dependencies {
    compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
    implementation 'com.google.code.gson:gson:2.8.6'
    compile 'org.slf4j:slf4j-api:1.7.30'
    compile 'org.slf4j:slf4j-simple:1.7.30'
    compile "com.squareup.moshi:moshi-kotlin:1.5.0"
    compile "com.squareup.moshi:moshi-adapters:1.5.0"
    compile "com.squareup.okhttp3:okhttp:3.8.0"
    compile "org.threeten:threetenbp:1.3.6"
    testCompile "io.kotlintest:kotlintest:2.0.2"
    implementation "org.jetbrains.kotlin:kotlin-script-runtime:$kotlin_version"
    implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
}
